/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package aic.ws;

import aic.beans.Customer;
import aic.beans.Item;
import aic.beans.Order;
import aic.faults.ItemUnavailableFault;
import aic.faults.UnknownCustomerFault;
import aic.faults.UnknownItemFault;
import aic.faults.UnknownOrderFault;
import javax.jws.WebParam;
import javax.jws.WebService;

@WebService
public interface OrderManagementService {

    boolean check_availability(@WebParam(name="item") Item item) throws UnknownItemFault;

    Order place_order(@WebParam(name="items") Item[] items, @WebParam(name="customer") Customer customer) throws UnknownCustomerFault, ItemUnavailableFault;

    boolean is_finished(@WebParam(name="order") Order order) throws UnknownOrderFault;

    boolean insert_test_data();

}
